<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>绑定元素特性</title>
    <h3>绑定元素特性</h3>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 引入vue.js -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>


</head>

<body>
    <div id="box">
        <span v-bind:title="message">
          鼠标悬停几秒钟查看此处动态绑定的提示信息！
        </span>
    </div>

</body>
<script>
    var box = new Vue({
        el: '#box',
        data: {
            message: '页面加载于 ' + new Date().toLocaleString()
                //  new Date().toLocaleString()获取日期与时间
        }
    })

    box.message = '你能看到我吗？我是小可爱'
</script>

</html>